<?php
/**
 * Created by PhpStorm.
 * User: AivyYuan
 * Date: 2016/7/7
 * Time: 17:22
 */
namespace app\models;

use yii\db\ActiveRecord;

class Category extends ActiveRecord{
  
    public function rules()
    {
        return [
            [['name',  'status'], 'required',],
            [['pid','desc'],'safe'],
            ['name','unique'],
            // email has to be a valid email address
            // verifyCode needs to be entered correctly
        ];
    }
}